﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html>



<!-- Mirrored from www.zi-han.net/theme/hplus/table_basic.html by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 20 Jan 2016 14:20:01 GMT -->
<head>
    <link href="~/BootstrapS/css/bootstrap.min14ed.css" rel="stylesheet" />
    <link href="~/BootstrapS/css/font-awesome.min93e3.css" rel="stylesheet" />
    <link href="~/BootstrapS/css/animate.min.css" rel="stylesheet" />
    <link href="~/BootstrapS/css/style.min862f.css" rel="stylesheet" />
</head>

<body class="gray-bg">
    @*出诊信息列表*@
    <div class="wrapper wrapper-content animated fadeInRight" id="vue_div">
        <div class="row">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <button type="button" class="btn btn-outline btn-info" data-toggle="modal" href="/Outcall/AddOutcall" data-target="#myModal">添加出诊信息</button>
                </div>
                <div class="table table-bordered">
                    <table class="table table-hover">
                        <thead>
                            <tr>
                                <th><input id="checkAllBtn" type="checkbox" /></th>
                                <th>出诊编号</th>
                                <th>病人编号</th>
                                <th>挂号号码</th>
                                <th>医生姓名</th>
                                <th>挂号科室</th>
                                <th>当前状态</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="item in info">
                                <td><input id="Checkbox1" class="Checkbox" value="' + this.outcalls_Id + '" type="checkbox" /></td>
                                <td>{{item.outcalls_number}}</td>
                                <td>{{item.patient_Num}}</td>
                                <td>{{item.registration}}</td>
                                <td>{{item.doctor_Name}}</td>
                                <td>{{item.outpatient_Name}}</td>
                                <td>{{item.outcalls_State}}</td>
                                <td>
                                    <button type="button" class="btn btn-outlioutpatient_Namene btn-info" v-on:click="detail(item.outcalls_Id)" href="/Outcall/OutcallDetail" data-toggle="modal" data-target="#mModal">出诊详情</button>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                    <!--分页-->
                    <div class="btn-group" style="margin-left:45%">
                        <button type="button" class="btn btn-white">
                            <i class="fa fa-chevron-left"></i>
                        </button>

                        <button type="button" class="btn btn-white">
                            <i class="fa fa-chevron-right"></i>
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 模态框（Modal）添加出诊信息 -->
    <div class="modal fade animated flipInY" id="myModal"  tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            <div class="modal-content" style="width: 600px; margin-left: 70px; margin-top: 50px">
            </div><!-- /.modal-content -->
        </div><!-- /.modal -->
    </div>
    @*模态框 出诊详情*@
<div class="modal fade animated flipInY" id="mModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content" style="width: 600px; margin-left: 70px; margin-top: 50px">
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
</body>
</html>
<script src="~/BootstrapS/js/jquery.min.js"></script>
<script src="~/BootstrapS/js/bootstrap.min.js"></script>
<script src="~/BootstrapS/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script src="~/BootstrapS/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script src="~/BootstrapS/js/plugins/layer/layer.min.js"></script>
<script src="~/BootstrapS/js/hplus.min.js"></script>
<script src="~/BootstrapS/js/contabs.min.js"></script>
<script src="~/BootstrapS/js/plugins/pace/pace.min.js"></script>
<script src="~/vue/axios.min.js"></script>
<script src="~/vue/vue.min.js"></script>
<script>

    new Vue({
        el: '#vue_div',
        data() {
            return {
                info: ''
            }
        },
        mounted() {
            axios
                .get('/Outcall/GetOutcall')
                .then(response => (this.info = response.data))
                .catch(function (eatch) {
                    console.log(eatch);
                })

        },

    })
</script>